import request from '@/utils/request'

// 勘探点列表
export function listExploration(query) {
  return request({
    url: '/supervise/explorationApi/list',
    method: 'post',
    params: query
  })
}
// 修改勘探点
export function updateExploration(data) {
  return request({
    url: '/supervise/explorationApi/update',
    method: 'post',
    data: data
  })
}

// 添加勘探点
export function addExploration(data) {
  return request({
    url: '/supervise/explorationApi/add',
    method: 'post',
    data: data
  })
}

// 获取勘探点详情
export function getExplorationById(id) {
  return request({
    url: '/supervise/explorationApi/get/' + id,
    method: 'get'
  })
}

// 删除勘探点
export function removeExploration(id) {
  return request({
    url: '/supervise/explorationApi/remove',
    method: 'post',
    params: id
  })
}

// 查询勘探点无权限
export function listNoExploration(query) {
  return request({
    url: '/supervise/explorationApi/listNoPermission',
    method: 'post',
    params: query
  })
}

// 勘探点含有已配设备/已配人员的数据列表
export function listExplorationPlus(query) {
  return request({
    url: '/supervise/explorationApi/listPlus',
    method: 'post',
    params: query
  })
}
